<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>已接收消息管理</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
<script language="javascript">
<!--
	var checked = false;
	function checkAll(check){
		checked = !checked;
		if(check != null){
			if(check.length){
				for(var i = 0; i < check.length; i ++){
					check[i].checked = checked;
				}
			}else{
				check.checked = checked;
			}
		}
	}
-->
</script>
</head>

<body>
<jsp:include page="/admin/userMessageMiddle.jsp?tag=receiveList"/>
<table width="100%" border="1">
<form method="post" name="form1" action="<%=request.getContextPath()%>/MessageInfo.do?method=receiveDelete">
<tr><td colspan="4" class="nohover"><input type="button" value="全选/除" onClick="checkAll(document.form1.did)"/>&nbsp;<input class="buttondelete" type="button" name="" value="删除" onClick="javascript:if(confirm('确定删除选择的数据吗？')){form1.submit();}"/></td></tr>
  <tr>
    <th width="50">选择</th>
    <th width="150">标题</th>
    <th width="120">发送人</th>
    <th width="150">发送日期</th>
  </tr>
  <c:forEach items="${list}" var="prod" varStatus="lineInfo">
  <tr <c:if test="${lineInfo.count % 2 == 0}">class="blue"</c:if>>
    <td><input type="checkbox" value="${prod.receiveMessageId}" name="did"/></td>
    <td><a href="<%=request.getContextPath()%>/MessageInfo.do?method=receiveMessageDetail&receiveMessageId=${prod.receiveMessageId}">${prod.receiveMessageTitle}</a><c:if test="${prod.receiveMessageIsRead == 0}"> <img alt="未读消息" src="<%=request.getContextPath()%>/images/unrd.gif"/></c:if></td>
    <td>${prod.receiverPersionFile.perFileName} </td>
    <td><fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${prod.receiveMessageDate}"/></td>
  </tr>
  </c:forEach>
  </form>
  <tr>
    <td class="nohover" colspan="12" align="center">&nbsp;
    <form name="pageForm" method="post">
    <c:out value="${foot}" escapeXml="false"/>
    </form>
    </td>
  </tr>
</table>
</body>
</html>
